package com.weai.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 存款AI助手聊天请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DepositAIChatRequest {
    
    /**
     * 用户当前输入的消息内容
     */
    @NotBlank(message = "消息内容不能为空")
    private String message;
    
    /**
     * 会话ID，首次请求可为空
     */
    private String conversationId;
    
    /**
     * 当前用户名，记录用户身份
     */
    private String username;
    
    /**
     * 两参数构造函数，支持向下兼容
     * 
     * @param message 消息内容
     * @param conversationId 会话ID
     */
    public DepositAIChatRequest(String message, String conversationId) {
        this.message = message;
        this.conversationId = conversationId;
        this.username = null;
    }

    // toString方法
    @Override
    public String toString() {
        return "DepositAIChatRequest{" +
                "message='" + message + '\'' +
                ", conversationId='" + conversationId + '\'' +
                ", username='" + username + '\'' +
                '}';
    }   


} 